package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("监控摄像头实体")
@TableName("monitor_camera")
public class MonitorCamera implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "base_id", type = IdType.AUTO)
    private Long baseId;

    @ApiModelProperty("摄像头名称")
    @TableField("base_name")
    private String baseName;

    @ApiModelProperty("设备ID/序列号")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty("设备型号")
    @TableField("device_type")
    private String deviceType;

    @ApiModelProperty("安装位置ID")
    @TableField("area_id")
    private Long areaId;

    @ApiModelProperty("IP地址")
    @TableField("ip_addr")
    private String ipAddr;

    @ApiModelProperty("访问端口号")
    @TableField("access_port")
    private String accessPort;

    @ApiModelProperty("访问密码")
    @TableField("access_password")
    private String accessPassword;

    @ApiModelProperty("传输协议")
    @TableField("transfer_protocol")
    private String transferProtocol;

    @ApiModelProperty("创建者")
    @TableField("creator")
    private Long creator;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    @TableField("modifier")
    private Long modifier;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("删除标识")
    private Byte isDelete;

    @ApiModelProperty("播流域名")
    private String domain;
    private String appName;
    private String streamName;
    @ApiModelProperty("摄像机状态 online在线   offline离线")
    private String cameraStatus;
}
